package com.myf.mappers;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.myf.dtos.inventory.InventoryHisQueryOutput;
import com.myf.entities.InventoryHisEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface InventoryHisMapper extends BaseMapper<InventoryHisEntity> {

    /**
     * 分页查询数据
     * @param map 查询对象
     *       <ul>
     *         <li>keyword - 关键字</li>
     *         <li>limit - 分页</li>
     *         <li>offset - 跳行</li>
     *       </ul>
     * */
    List<InventoryHisQueryOutput> getPaginationList(Map<String, Object> map);

    /**
     * 分页查询数据
     * @param map 查询对象
     *       <ul>
     *         <li>keyword - 关键字</li>
     *       </ul>
     * */
    int getPaginationCount(Map<String, Object> map);



    Short getWarehouseStatus(@Param("id") int id);

    Short getWarehouseLocationStatus(@Param("id") int id);

    Short getMatetrialStatus(@Param("id") int id);

    InventoryHisQueryOutput getById(@Param("id") int id);
}
